cmake_minimum_required(VERSION 2.8)

set(VZPROJECT_INCLUDE_DIR
  ${PROJECT_SOURCE_DIR}/src
  ${PROJECT_SOURCE_DIR}/src/third_party/curl/ubuntu64/include
  ${PROJECT_SOURCE_DIR}/src/third_party/libevent/ubuntu64/include
)

set(VZPROJECT_LIBRARY_DIR
  ${PROJECT_SOURCE_DIR}/lib/ubuntu64
  ${PROJECT_SOURCE_DIR}/src/third_party/openssl/ubuntu64/lib
  ${PROJECT_SOURCE_DIR}/src/third_party/curl/ubuntu64/lib
  ${PROJECT_SOURCE_DIR}/src/third_party/libevent/ubuntu64/lib
)

set(VZPROJECT_LINK_LIB
  dl
  pthread
	# rt
)

set(CMAKE_CXX_STANDARD 11)

add_definitions(

)

SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY  "${PROJECT_SOURCE_DIR}/bin/ubuntu64")
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY  "${PROJECT_SOURCE_DIR}/lib/ubuntu64")
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY  "${PROJECT_SOURCE_DIR}/lib/ubuntu64")

SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG  "${PROJECT_SOURCE_DIR}/bin/ubuntu64")
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG  "${PROJECT_SOURCE_DIR}/lib/ubuntu64")
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG  "${PROJECT_SOURCE_DIR}/lib/ubuntu64")

# With Release properties
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE  "${PROJECT_SOURCE_DIR}/bin/ubuntu64")
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE  "${PROJECT_SOURCE_DIR}/lib/ubuntu64")
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE  "${PROJECT_SOURCE_DIR}/lib/ubuntu64")